# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   体检平台

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.physical_examination_page import PhysicalExaminationPage


class PhysicalExaminationCase(UIParent):

    @classmethod
    def test_physical_examination_check(cls):
        '''体检平台校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("体检平台")
        authorizePage.ifAuthorize()

        status = PhysicalExaminationPage.physical_examination_index()
        asserts.true(status, "体检平台校验")
